<?php
/**
 * 核心文件
 * @author Yangdong Zhang <zhangyangdong@gouuse.cn>
 * @time 2018/10/12 16:00
 */

define('RUNTIME', ROOT_PATH.'/runtime');
define('TEMPLATE_PATH', ROOT_PATH.'/resources/view');

include_once ROOT_PATH . '/vendor/autoload.php';
include_once ROOT_PATH . '/app/autoload.php';
include_once ROOT_PATH . '/app/functions/function.php';

$database = include_once ROOT_PATH . '/config/database.php';
$app      = include_once ROOT_PATH . '/config/app.php';

$application = new \App\Application($database, $app);
$application->runMvc();